package com.yyj1205.jsongenrator.entity.session;

import com.yyj1205.jsongenrator.entity.ChatMessage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Title: RedisSession
 * @Author yyj1205
 * @Package com.yyj1205.jsongenrator.entity.session
 * @Date 2024-09-22 19:56
 * @description: Session used for redis
 */
@ApiModel(description = ": Session used for redis")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RedisSession {
    /**
     * Id for different session(LLM needed)
     */
    @ApiModelProperty("Id for different session(LLM needed)")
    String Id;

    @ApiModelProperty("userName")
    String userName;
    /**
     * Context
     */
    @ApiModelProperty("Context")
    List<ChatMessage> messageList;

}
